package com.api.entitis;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * (Company)表实体类
 * @since 2022-02-15 17:05:39
 */
@Data
@ApiModel("企业实体")
@TableName("company")
@EqualsAndHashCode(callSuper = false)
public class Company implements Serializable {
    @ApiModelProperty("主键")
    @TableId(type = IdType.INPUT)
    private String id;

    @ApiModelProperty("企业名称")
    private String companyName;

    @ApiModelProperty("企业邮件")
    private String companyEmail;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("营业执照")
    private String businessLicense;

    @ApiModelProperty("企业类型")
    private String type;

    @ApiModelProperty("创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField(exist = false)
    @ApiModelProperty("验证码")
    private String txt;
}

